import axios from 'axios';
let http = axios.create({
  baseURL: '/api',
  timeout: 10000,
});

http.interceptors.request.use((confing:any) => {
  confing.headers.authorization = localStorage.getItem("token")
  return confing;
});
http.interceptors.response.use((confing) => {
  return confing
})

export default http;
